<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="generator" content="HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />

  <title>Associating Files with the Perl Editor</title>
  <link href="book.css" rel="stylesheet" type="text/css" />
  <meta content="DocBook XSL-NS Stylesheets V1.73.0" name="generator" />
  <link rel="start" href="index.html" title="EPIC - User's Guide" />
  <link rel="up" href="ch02.html" title="Setting Up Preferences" />
  <link rel="prev" href="ch02s06.html" title="Templates" />
  <link rel="next" href="ch02s08.html" title="CVS Setup" />
</head>

<body>
  <div class="section" lang="en" xml:lang="en">
    <div class="titlepage">
      <div>
        <div>
          <h2 class="title" style="clear: both"><a id="associating-files" name=
          "associating-files"></a>Associating Files with the Perl Editor</h2>
        </div>
      </div>
    </div>

    <p>Eclipse associates file extensions with editors. If another plug-in is installed, the EPIC
    Perl Editor might not be used as the default editor when opening *.pl, *.pm or *.cgi files. To
    associate these file extensions with the Perl Editor, choose <span class=
    "guimenu">Window</span> → <span class="guimenuitem">Preferences...</span> from the Eclipse menu
    and select <span class="guimenu">Workbench</span> → <span class="guimenuitem">File
    Associations</span>. If the Perl extensions are missing, they can be created by pressing the
    <span class="guibutton">Add...</span> button. Select the Perl Editor from the list and press
    the <span class="guibutton">Default</span> button.</p>

    <div class="screenshot">
      <div class="mediaobject" align="center">
        <img src="images/file_associations_1.gif" align="middle" alt="File Associations" />
      </div>
    </div>

    <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
      <h3 class="title">Note</h3>

      <p>Regrettably, there is currently <a class="ulink" href="http://www.antlr.org" target=
      "_top">no way</a> to associate EPIC with script files that do not have any specific extension
      but instead begin with the <code class="literal">#!/usr/bin/perl</code> line.</p>
    </div>
  </div>
</body>
</html>
